package cn.zf;

import java.util.Calendar;

public class Str2 {
    public static void main(String[] args) {
        var c= Calendar.getInstance();
        var d=c.get(Calendar.DAY_OF_WEEK);
        System.out.printf("今日：星期%s%n","日一二三四五六".substring(d-1,d));
        System.out.printf("今日：星期%s%n","日一二三四五六".charAt(d));
        var f=new String("D:/usr/local/lib/b.jpg");
        var m=f.substring(f.lastIndexOf("."));
        System.out.println(m);
        System.out.println(f.substring(f.lastIndexOf(f),f.lastIndexOf(".")));
    }
}
